package {{.PackageName}}.dto

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.dto.AbstractDTO;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class {{.ClassName}}DTO extends AbstractDTO {

    private static final long serialVersionUID = 1L;

    {{range $i, $v := .Fields}}
    /** {{$v.TableFieldComment}} */
    {{$R1 := $v.NullAble}}{{$R2 := "false"}}{{if eq $R1 $R2}}@NotBlank(message ="{{$v.TableFieldComment}}不能为空"){{end}}
    @Length(max = {{$v.Length}}, message = "{{$v.TableFieldComment}}不能超过{max}位")
    private {{$v.Type}} {{$v.FieldName}};
    {{end}}
}